VERSON=0.9.8
SRC_DIR=wondertrader-${VERSON}/build/build_x64/Debug/bin
DST_DIR=wtpy-${VERSON}/wtpy/wrapper/linux

yes | cp ${SRC_DIR}/libWtExeFact.so ${DST_DIR}/executer/

topDlls=(Loader/libCTPLoader.so Loader/libMiniLoader.so WtPorter/libTraderDumper.so \
		 WtBtPorter/libWtBtPorter.so WtDtPorter/libWtDataStorage.so \
		 WtDtPorter/libWtDtHelper.so WtDtPorter/libWtDtPorter.so WtDtPorter/libWtDtServo.so \
		 WtPorter/libWtExecMon.so WtPorter/libWtMsgQue.so WtPorter/libWtPorter.so WtPorter/libWtRiskMonFact.so)
for dll in ${topDlls[@]}; do
	echo $dll
	yes | cp ${SRC_DIR}/${dll} ${DST_DIR}
done

parserDlls=(libParserCTPMini.so libParserCTP.so libParserUDP.so)
for dll in ${parserDlls[@]}; do
	echo $dll
	yes | cp ${SRC_DIR}/${dll} ${DST_DIR}/parsers
done

traderDlls=(libTraderCTPMini.so libTraderCTP.so libTraderMocker.so)
for dll in ${traderDlls[@]}; do
	echo $dll
	yes | cp ${SRC_DIR}/${dll} ${DST_DIR}/traders
done
